/*
 * @Author: fanyaqing
 * @Date: 2021-08-12 09:14:00
 * @LastEditTime: 2021-08-16 14:25:00
 * @LastEditors: fanyaqing
 * @Description: 
 * @FilePath: \supermall\src\store\mutations.js
 */
export default{
  // 添加某个商品的数量
  addCounter(state,payload){
    payload.count++
  },
  // 添加商品
  addToCart(state,payload){
    payload.checked=true;
    state.cartList.push(payload)
  },
}
